//
//  HLStationCell.m
//  zhuanxian
//
//  Created by zhaoliang chen on 2017/11/17.
//  Copyright © 2017年 huiling. All rights reserved.
//

#import "HLStationCell.h"

@implementation HLStationCell

+ (NSString *)cellIdentifier {
    return @"HLStationCell";
}

+ (instancetype)cellWithCollectionView:(UICollectionView *)collectionView forIndexPath:(NSIndexPath *)indexPath {
    HLStationCell *cell = (HLStationCell*)[collectionView dequeueReusableCellWithReuseIdentifier:[HLStationCell cellIdentifier] forIndexPath:indexPath];
    return cell;
}

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.contentView.backgroundColor = [UIColor whiteColor];
        
        [self.contentView addSubview:self.labelStation];
        [self.labelStation mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_equalTo(self.contentView).insets(UIEdgeInsetsMake(3, 3, 3, 3));
        }];
    }
    return self;
}

- (UILabel*)labelStation {
    if (!_labelStation) {
        _labelStation = [[UILabel alloc]init];
        _labelStation.font = [UIFont systemFontOfSize:13];
        _labelStation.textAlignment = NSTextAlignmentCenter;
        _labelStation.layer.borderColor = BackColor.CGColor;
        _labelStation.layer.borderWidth = 0.6;
        _labelStation.lineBreakMode = NSLineBreakByTruncatingTail;
    }
    return _labelStation;
}

@end
